package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 团队成员表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "team_member")
public class TeamMember implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 团队类型 1线索 2客户 3商机 4报价单 5合同 6回款 7回访
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 对应类型主键id
     */
    @TableField(value = "type_id")
    private Integer typeId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 1 只读 2 读写 3 负责人
     */
    @TableField(value = "`power`")
    private Integer power;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 过期时间
     */
    @TableField(value = "expires_time")
    private Date expiresTime;

    private static final long serialVersionUID = 1L;
}